<script>
	export default {
		onLaunch() {
			console.log('App Launch')
			//微信小程序 如何分包 https://blog.csdn.net/Bejpse/article/details/123367670
			// 1.配置manifest.json
			// “mp-weixin”: { “optimization”:{“subPackages”:true} }
			
		},
		created() {
				console.log('created')
		},
		mounted() {
			console.log('mounted')
		}
		,
		onShow (){
			console.log('App Show')
			
			console.log('App Show')
			this.getTex()
			
			
		},
		onHide(){
			console.log('App Hide')
		},
		methods: {
			getTex() {
				console.log("getdc");
				uni.request({
					url: "http://172.20.10.4:3000/api/index_list/data",
					header: {
						"Content-Type": "application/json;charset=utf-8"
						// "Content-Type":"application/x-www-form-urlencoded",
					},
					data: {},
					method: "GET",
					dataType: "json", 

					success: (res) => {
						console.log("resresres" + JSON.stringify(res))

					},
					fail: res => {
						console.log("res", res)
					},
					complete: res => {


					}
				})

			},
		},
	}
</script>

<style>
	@import './common/uni.css';
	@import './common/iconfont.css';
	/*每个页面公共css */
	view{
		box-sizing: border-box;
	}
</style>
